<div class="form wide">

<?php $form=$this->beginWidget('CmsWidgetForm', array(
    'formParams'=>$formParams,
    'formLayoutParams'=>$formLayoutParams,
));?>

    <?php echo $form->errorSummary($model); ?>

    <?php if (! $model->IsNewRecord) echo $form->hiddenField($model, "id") ; ?>
    <div class="row">
        <?php echo $form->labelEx($model,'source'); ?>
        <?php //echo $form->textField($model,'source',array('size'=>60,'maxlength'=>512)); ?>
        <?php $this->widget('Admin.components.FileWidget', array(
            'name'=>CHtml::resolveName($model, $attribute='source'),
            'value'=>$model->source,
            'root'=>'/uploads',
            'showButtonRemove'=>false,
        )); ?>
        <?php echo $form->error($model,'source'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'alt'); ?>
        <?php echo $form->textField($model,'alt',array('size'=>60,'maxlength'=>512)); ?>
        <?php echo $form->error($model,'alt'); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->